
package com.myrpc.test.loadbean;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import com.myrpc.consumer.ConsumerApplication;
import com.myrpc.consumer.utils.SpringContextHolder;

@RunWith(SpringRunner.class)

@SpringBootTest(classes = ConsumerApplication.class)
public class LoadBeanTs {

	@Autowired
	SpringContextHolder springContextHolder;

	@Test
	public void contextLoads() {

		springContextHolder.printAllBeans();

	}

}
